import { defineComponent, PropType } from 'vue'

import { formatNum } from 'utils/num'
import styles from './style.module.scss'

export default defineComponent({
  name: '',
  props: {
    count: {
      type: Number as PropType<number>,
      required: true,
    },
    className: String as PropType<string>,
  },
  setup(props) {
    const { count, className } = props
    return () => {
      return (
        <div class={[styles.root, className]}>
          {/* <Icon icon='play' /> */}
          <i class="iconfont icon-play"></i>
          {formatNum(count)}
        </div>
      )
    }
  },
})
